<?if(get_flash_message()){?><center><div class="messageBox"><?=get_flash_message()?></div></center><?}?>
<table width="100%" border="0" align="center" cellpadding="1" cellspacing="1" class="text">
  <tr align="center" id="listTableHeader"> 
    <td width="10"><input type="checkbox" onclick="common.mark_all_rows('uid[]', this.checked)" /></td>
    <td width="25%">{NameTX}</td>
    <td width="40%">Link</td>
    <td width="10%">{OrderTX}</td>
    <td>{EnableTX}</td>
    <td width="60"><nobr>Action</nobr></td>
  </tr>
<?$i=1;foreach($menus as $menu){?>
  <tr class="row<?=($i==1)?'1':'2'?>">
    <td><input type="checkbox" name="mid[]" value="<?=$menu->id?>" /></td>
    <td><a href="<?=site_url('admin/menus.cms_menus/'.$menu->id)?>" title="<?=h($menu->name)?>"><?=h($menu->name)?></a></td>
    <td><?=h($menu->link)?></td>
    <td align="center"><?=$menu->ordering?></td>
    <td align="center"><a href="javascript:void(0)" onclick="common.switch_status('<?=site_url('admin_ajax/menus.cms_menus.switch_status/'.$menu->id)?>', 'div_status_<?=$menu->id?>');"><div id="div_status_<?=$menu->id?>" class="<?=($menu->enabled)?'active_icon':'inactive_icon'?>"></div></a></td>
    <td>
        <a href="<?=site_url('admin/menus.cms_menus.edit/'.$menu->id)?>"><div class="edit_icon">|</div></a>
        <a href="javascript:deleteUser('1', 6);"><div class="delete_icon"></div></a>
    </td>
  <tr>
<?$i=-$i;}?>
  <tr>
    <td colspan="6">
      <table class="adminlist" border="0" cellpadding="0" cellpadding="0" width="100%" class="PagingTable">
        <tr>
          <td class="pageCounter" width="100%" align="center">
            {paging}
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>

